export const widgetImage = {
    code: 'widget-image',
    type: 'html',
    label: '图片',
    icon: 'picture',
    preview: require('./preview/widget-image.png'),
    options: {
      // 配置
      setup: [
        {
          type: 'a-input-text',
          label: '图层名称',
          name: 'layerName',
          required: false,
          placeholder: '',
          value: '图片',
        },
        {
          type: 'a-switch',
          label: '开启旋转',
          name: 'startRotate',
          required: false,
          placeholder: '',
          value: false,
        },
        {
          type: 'a-select',
          label: '旋转速度',
          name: 'rotateVelocity',
          required: false,
          placeholder: '',
          selectOptions: [
            {code: 'startImg1', name: '0.5秒'},
            {code: 'startImg2', name: '1.0秒'},
            {code: 'startImg3', name: '1.5秒'},
            {code: 'startImg4', name: '2.0秒'},
            {code: 'startImg5', name: '2.5秒'},
            {code: 'startImg6', name: '3.0秒'}
          ],
          value: 'startImg4'
        },
        {
          type: 'a-slider',
          label: '透明度',
          name: 'transparency',
          required: false,
          placeholder: '',
          value: 100
        },
        {
          type: 'a-input-number',
          label: '圆角',
          name: 'borderRadius',
          required: false,
          placeholder: '',
          value: '0'
        },
        {
          type: 'image-upload',
          label: '图片地址',
          name: 'imageAdress',
          required: false,
          placeholder: '',
          value: 'https://platform-kcyf-os.oss-cn-beijing.aliyuncs.com/temp/53earth_1655348786802.png',
        },
        {
          type: 'vue-color',
          label: '背景颜色',
          name: 'background',
          required: false,
          placeholder: '',
        },
      ],
      // 数据
      data: [],
      // 坐标
      position: [
        {
          type: 'a-input-number',
          label: '横坐标',
          name: 'left',
          required: false,
          placeholder: '',
          value: 0,
        },
        {
          type: 'a-input-number',
          label: '纵坐标',
          name: 'top',
          required: false,
          placeholder: '',
          value: 0,
        },
        {
          type: 'a-input-number',
          label: '深度',
          name: 'zIndex',
          required: false,
          placeholder: '',
          value: 0,
        },
        {
          type: 'a-input-number',
          label: '宽度',
          name: 'width',
          required: false,
          placeholder: '该容器在1920px大屏中的宽度',
          value: 300,
        },
        {
          type: 'a-input-number',
          label: '高度',
          name: 'height',
          required: false,
          placeholder: '该容器在1080px大屏中的高度',
          value: 300
        },
      ],
    }
  }
